import java.util.Arrays;

public class ChangeArraysNumber {

    public static int[] transform (int[] array) {
        for(int i =0;i<array.length;i++) {
            array[i]=array[i] * 2;
        }
        return array;
    }

    public static void main(String[] args) {
        int[] array = { 1 , 2 , 3 };
        int[] ret = transform(array);
        System.out.println(Arrays.toString(ret));
    }
}
